﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework
{
    /// <summary>
    /// 下拉输入项实体
    /// </summary>
    public abstract class InputItem : Entity
    {
        private string _name;
        private string _code;
        /// <summary>
        /// 文本值
        /// </summary>
        public virtual string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                if (String.IsNullOrEmpty(value))
                    throw new ArgumentException();
                this._name = value;
            }
        }
        /// <summary>
        /// 编码
        /// </summary>
        public virtual string Code
        {
            get
            {
                return this._code;
            }
            set
            {
                if (String.IsNullOrEmpty(value))
                    throw new ArgumentException();
                this._code = value;
            }
        }
    }
}
